<script setup>
  import PhrasesSay from '../../assets/json/phrasesSay.json'
  import PhrasesWho from '../../assets/json/phrasesWho.json'

  let today = JSON.stringify(new Date()).slice(9, 11)

  let chek = 0

  for (let i = 1; i < 32; i++) {
    if (today == 1 || today == 11 || today == 21 || today == 31) {
      chek = 1
    }
    if (today == 2 || today == 12 || today == 22) {
      chek = 2
    }
    if (today == 3 || today == 13 || today == 23) {
      chek = 3
    }
    if (today == 4 || today == 14 || today == 24) {
      chek = 4
    }
    if (today == 5 || today == 15 || today == 25) {
      chek = 5
    }
    if (today == 6 || today == 16 || today == 26) {
      chek = 6
    }
    if (today == 7 || today == 17 || today == 27) {
      chek = 7
    }
    if (today == 8 || today == 18 || today == 28) {
      chek = 8
    }
    if (today == 9 || today == 19 || today == 29) {
      chek = 9
    }
    if (today == 10 || today == 20 || today == 30) {
      chek = 10
    }
  }
</script>

<template>
  <div class="relative h-full w-full p-4 text-sm">
    <h3 class="font-bold">"{{ PhrasesSay[chek] }}"</h3>
    <h3 class="pt-3 text-right">©{{ PhrasesWho[chek] }}</h3>
  </div>
</template>
